import request from '@/utils/request'

// 列表查询
const tableList = function (params = {}) {
  return request({
    url: '/zy-api/api/wmDataalert/findList',
    method: 'post',
    data: params
  })
}

// 新增
const addData = function (params = {}) {
  return request({
    url: '/zy-api/api/wmDataalert/add',
    method: 'post',
    data: params
  })
}

// 修改
const editData = function (params = {}) {
  return request({
    url: '/zy-api/api/wmDataalert/update',
    method: 'post',
    data: params
  })
}

// 删除
const delData = function (params = {}) {
  return request({
    url: '/zy-api/api/wmDataalert/delete',
    method: 'post',
    data: params
  })
}

// 核实处理
const verifyHandle = function (params = {}) {
  return request({
    url: '/zy-api/api/wmDataalert/handle',
    method: 'post',
    data: params
  })
}

// 审核
const auditHandle = function (params = {}) {
  return request({
    url: '/zy-api/api/wmDataalert/Review',
    method: 'post',
    data: params
  })
}

// 完成处理
const completeHandle = function (params = {}) {
  return request({
    url: '/zy-api/api/wmDataalert/complete',
    method: 'post',
    data: params
  })
}

// 获取字典项 {"type": "METHOD" 字典类型, "pcode": "1" 字典value}
const getDictOptions = function (params = {}) {
  return request({
    url: '/zy-api/api/dict/data/getDictName',
    method: 'post',
    data: params
  })
}

// 计数据预警及处理台账短信发送情况查询
const getSendLog = function (params = {}) {
  return request({
    url: '/zy-api/api/wmDataalert/findSend',
    method: 'post',
    data: params
  })
}


export {
  tableList,
  addData,
  editData,
  delData,
  auditHandle,
  verifyHandle,
  completeHandle,
  getDictOptions,
  getSendLog
}